Prevent setting null value to primitive type attributes (int i = null;)